﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
<html>
	<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
	<title>{{page_title}}</title>
    <link type="text/css" rel="stylesheet" href="/stylesheets/main.css" />
  </head>
  <body>
	{{page_header}}
	<hr/>
	{% if  url %}
		{{page_redirect}}
	{% else %}
	<div>
		<table width="100%" border="1">
		  <tr>
			<th>标题</th>
			<th>成交时间</th>
			<th>买家</th>
			<th>买家信用</th>
			<th>单价</th>
			<th>数量</th>
			<th>交易状态</th>
		  </tr>
		 {% for t in trades %}
		  <tr>
			<td>{{t.title}}</td>
			<td>{{t.created}}</td>
			<td>{{t.buyer_nick}}</td>
			<td>{{t.buyer.buyer_credit.level}}</td>
			<td>{{t.price}}</td>
			<td>{{t.num}}</td>
			<td>{{t.status}}</td>
		  </tr>
		  {% endfor %}
		</table>
	</div>
	{% endif %}
	<hr/>
	{% if msg %}
	<div>出错信息:{{ msg}}</div>
	{% endif %}
  </body>
</html>